﻿using Adnc.Application.Shared.Dtos;
using System;
using System.Collections.Generic;
using System.Text;

namespace WYT.Pro.Application.Contracts.Dtos.Product
{
    /// <summary>
    /// 评论详情
    /// </summary>
    public class ProductReviewDetailDto : IDto
    {
        /// <summary>
        /// 评论ID
        /// </summary>
        public long Id { get; set; }

        /// <summary>
        /// 用户名称
        /// </summary>
        public string UserName { get; set; }

        /// <summary>
        /// 用户头像
        /// </summary>
        public string HeadUrl { get; set; }

        /// <summary>
        /// 视频地址
        /// </summary>
        public string[] Video { get; set; }

        /// <summary>
        /// 图片地址
        /// </summary>
        public string[] Image { get; set; }

        /// <summary>
        /// 评论
        /// </summary>
        public string Content { get; set; }

        /// <summary>
        /// 评论时间
        /// </summary>
        public DateTime CommentTime { get; set; }

        /// <summary>
        /// 回复
        /// </summary>
        public List<ProductReviewReplyDto> Reply { get; set; }
    }

    /// <summary>
    /// 回复
    /// </summary>
    public class ProductReviewReplyDto : IDto
    {
        /// <summary>
        /// 用户名称
        /// </summary>
        public string UserName { get; set; }

        /// <summary>
        /// 用户头像
        /// </summary>
        public string HeadUrl { get; set; }

        /// <summary>
        /// 回复内容
        /// </summary>
        public string Content { get; set; }

        /// <summary>
        /// 回复时间
        /// </summary>
        public string CommentTime { get; set; }
    }
}
